package com.hopu.dy.mapper;

import com.hopu.dy.pojo.LikeNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface LikeNoticeMapper {
    // 插入点赞通知
    int insert(LikeNotice notice);

    // 查询当前用户的所有点赞通知（按时间倒序）
    @Select("select *from t_like_notice")
    List<LikeNotice> selectByLikedUserId(Long likedUserId);
}